package com.android.yinghebike.dialog;

import androidx.fragment.app.FragmentActivity;

import com.android.baselibrary.dialog.BaseDialogFragment;
import com.android.yinghebike.R;

import java.util.Map;

/**
 * Created by Administrator on 2018/8/29.
 */

public class AModel_DialogFragment extends BaseDialogFragment {

//    @BindView(R.id.iv_code)
//    ImageView iv_code;

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_a_model;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
    }

    @Override
    protected boolean setCanceledOnTouchBACK() {
        return false;
    }

    @Override
    protected int getShowDirection() {
        return BaseDialogFragment.Direction_FromBottom;
    }

    @Override
    public void setData(Map<String, Object> params) {
        if (params != null) {

        }
    }

    public static BaseDialogFragment showDialog(FragmentActivity activity, Map<String, Object> params) {
         AModel_DialogFragment dialogFragment = new  AModel_DialogFragment();
        dialogFragment.setData(params);
        dialogFragment.show(activity.getSupportFragmentManager(), "");
        return dialogFragment;
    }


//    @OnClick({R.id.ll_share_wx })
//    public void onViewClicked(View view) {
//        switch (view.getId()) {
//            case R.id.ll_share_wx:          //分享-微信
//
//                break;
//        }
//    }


}
